package cc.rengu.redp.bizimpl.upmp.dao;

import cc.rengu.redp.bizimpl.upmp.domain.BTxnLimitCfg;
import cc.rengu.redp.bizimpl.upmp.vo.MerchantLevelInfo;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 刘玉亮.LL
 */
public interface BTxnLimitCfgMapper extends BaseMapper<BTxnLimitCfg> {

    IPage<BTxnLimitCfg> findByPage(Page<BTxnLimitCfg> page, @Param("ew") Wrapper<BTxnLimitCfg> queryWrapper, @Param("entity") BTxnLimitCfg entity);

    List<MerchantLevelInfo> getAddMerLevelInfos(String instId);

    List<BTxnLimitCfg> selectLimitInst(String limitType, String limitInst, String instId);

    List<BTxnLimitCfg> selectMcGradeQuotaDetail(String notDiffAcctId, String creditId, String loanId);

    void updateTxnLimitCfgAuthById(String auditStatus, String lastOprId, String lastUpdateTime, String auditRefuseReason, String id);

    void updateTxnLimitCfgById(String singleLimitMaxAmt, String dayLimitAmt, String monthLimitAmt, String status, String auditStatus, String lastOprId, String lastUpdateTime, String auditRefuseReason, String id);

  List<BTxnLimitCfg>  queryBankGradeQuota(String instId,String limitInst);

}
